﻿<!DOCTYPE html>
<html xmlns:ss="http://sweetsurvey.com">
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/Lightness/jquery-ui.custom.css")" rel="stylesheet" type="text/css" id="theme" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tmpl.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.bt.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/json2.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/modernizr.custom.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/CustomScripts/Utilities.js")" type="text/javascript"></script>
</head>

<body class="ui-widget">

    <div class="ui-overlay" id="pageOverly">
        <div class="ui-widget-shadow ui-corner-all ui-helper-hidden" id="pageShadow"></div>
    </div>

    <div class="page ui-corner-all">
        @RenderBody()
    </div>

    <script type="text/javascript">
        (function () {

            var page = null, shadow = null;
            var lastPageHeight = -1;

            function adjustShadow() {
                if (page == null || shadow == null) { return; }
                var currentPageHeight = page.height();
                if (currentPageHeight > 0 && currentPageHeight != lastPageHeight) {
                    shadow.height(currentPageHeight);
                    lastPageHeight = currentPageHeight;
                }
            }

            $(function () {
                page = $('.page'); shadow = $('#pageShadow');
                page.on('resize', adjustShadow);
                page.trigger('resize');
                shadow.show();
                window.setInterval(adjustShadow, 2000);
            });

        })();
    </script>

    @{Html.RenderPartial("Templates/GlobalTemplates");}

</body>

</html>
